
import {
    toast
} from 'nc-lightapp-front';

import language from '../../language';

export default function(res) {

    let response = res.file.response || {};
    if(response.success) {
        toast({
            color: 'success',
            content: response.data // 上传成功
        });
    }
    else if(response.error && response.error.message) {
        toast({
            color: 'danger',
            content: response.error.message
        });
    }

}